import request from '@/utils/request'

// 查询班子记录列表
export function queryChilds(query) {
  return request({
    url: '/partybuilding/TeamRecord/queryChilds',
    method: 'get',
    params: query
  })
}

// 查询班子记录列表
export function listTeamRecord(query) {
  return request({
    url: '/partybuilding/TeamRecord/list',
    method: 'get',
    params: query
  })
}

// 查询班子记录详细
export function getTeamRecord(id) {
  return request({
    url: '/partybuilding/TeamRecord/' + id,
    method: 'get'
  })
}

// 新增班子记录
export function addTeamRecord(data) {
  return request({
    url: '/partybuilding/TeamRecord/add',
    method: 'post',
    data: data
  })
}

// 修改班子记录
export function updateTeamRecord(data) {
  return request({
    url: '/partybuilding/TeamRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除班子记录
export function delTeamRecord(id) {
  return request({
    url: '/partybuilding/TeamRecord/remove/' + id,
    method: 'post'
  })
}
